package com.walker.springboot.rabbitmq.listener;

import com.walker.springboot.rabbitmq.entity.User;
import org.springframework.context.ApplicationEvent;

/**
 * @Description:
 * @ProjectName: walker-step
 * @Package: com.walker.springboot.rabbitmq.listener
 * @ClassName: MyEvent
 * @Author: yangyl
 * @CreateDate: 2020/6/21 19:56
 */
public class MyEvent extends ApplicationEvent {

    private User user;

    public MyEvent(Object source,User user) {
        super(source);
        this.user=user;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    @Override
    public String toString() {
        return "MyEvent{" +
                "user=" + user +
                '}';
    }
}
